home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Shareware Grab Bag
/
Shareware Grab Bag.iso
/
095
/
rfix0424.arc
/
RSB20424.MRG
< prev
next >
Wrap
Text File
|
1988-04-24
|
6KB
|
146 lines
* ------------[ BLED merge (c) Ken Goosens ]-------------
* Merge this against RBBSSUB2.BAS to produce RSB20424.BAS
* RBBSSUB2.BAS: Date 3-25-1988 Size 129045 bytes
* ------------[ Created 04-24-1988 13:56:33 ]------------
* REPLACING old line(s) by new
270 IF RECYCLE.WAIT > 0 THEN _
IF TI! > INACTIVE.DELAY! THEN _
SUBROUTINE.PARAMETER = 8 : _
EXIT SUB
CALL FLUSHCOM (X$)
IF LEN(X$) > O THEN _
MODEM.RESPONSE$ = MODEM.RESPONSE$ + X$ : _
RING.DETECTED = (INSTR(MODEM.RESPONSE$,"RING") > 0) : _
CONNECT.DETECTED = (INSTR(MODEM.RESPONSE$,"ONNECT") > 0) : _
NO.CALL = (NOT RING.DETECTED) AND (NOT CONNECT.DETECTED)
* ------[ first line different ]------
CALL GOIDLE ' TF041703
WEND
IF NOT RINGBACK THEN _
IF CONNECT.DETECTED THEN _
GOTO 321
IF REQUIRED.RINGS = 0 THEN _
CALL DELAYIT (3) : _
GOTO 321
'
' *****************************************************************************
' * PREPARE TO ANSWER THIS CALL ON A SPECIFIED NUMBER OF RINGS (S0 = 254) OR *
' * THE CALL AFTER THIS CALL ON A SPECIFIED NUMBER OF RINGS (S0 = 255) -- *
' * "RING BACK." *
' *****************************************************************************
'
* REPLACING old line(s) by new
323 SUBROUTINE.PARAMETER = -10
CALL CARRIER
IF SUBROUTINE.PARAMETER AND _
TI! < CONNECT.DELAY! THEN _
GOTO 322
IF SUBROUTINE.PARAMETER THEN _
SUBROUTINE.PARAMETER = 4 : _
EXIT SUB
* ------[ first line different ]------
CALL DELAYIT (3) ' TF041704
* REPLACING old line(s) by new
* ------[ first line different ]------
3732 IF COMMPORT.STACK$ <> "" THEN _ ' TF041801
X$ = LEFT$(COMMPORT.STACK$,1) : _ ' TF041801
COMMPORT.STACK$ = RIGHT$(COMMPORT.STACK$,LEN(COMMPORT.STACK$)-1) : _ ' TF041801
GOTO 3738 ' TF041801
IF NOT EOF(3) THEN _
GOTO 3736
CALL FINDTIME (TI!)
IF TI! > AUTO.LOGOFF! THEN _
WAIT.EXPIRED = TRUE : _
EXIT SUB
* REPLACING old line(s) by new
3737 CALL GETCOM (X$)
* INSERTING new line(s)
3738 SEND.REMOTE = REMOTE.ECHO ' TF041801
* REPLACING old line(s) by new
20143 Z$ = B$(ARC.INDEX)
CALL ALLCAPS (Z$)
CALL BRKFNAME (Z$,DRV$,PREFIX$,EXT$,FALSE)
IF EXT$ = "" THEN _
Z$ = Z$ + _
".ARC" _
ELSE IF EXT$ <> "ARC" THEN _
CALL QTPUT ("Only .ARC files can be viewed",1) : _
RETURN
FILE.NAME.HOLD$ = Z$
FILE.NAME$ = Z$
* ------[ first line different ]------
CALL BADFILE (PREFIX$,BAD.FILE.NAME.INDEX) ' TF042402
ON BAD.FILE.NAME.INDEX GOTO 20144,20146,20147 ' TF042402
* REPLACING old line(s) by new
* ------[ first line different ]------
20144 CALL BADFILE (FILE.NAME$,BAD.FILE.NAME.INDEX) ' TF042402
ON BAD.FILE.NAME.INDEX GOTO 20145,20146,20147 ' TF042402
* INSERTING new line(s)
20145 CALL ROTORSDIR (FILE.NAME$,SUBDIR$(),SUBDIR.COUNT + (NOT SYSOP)) ' TF042402
IF OK THEN _
GOTO 20148
* REPLACING old line(s) by new
20296 CALL FLUSHCOM(Y$) ' CLEAR THE COMM BUFFER OF GARBAGE
IF SUBROUTINE.PARAMETER = -1 THEN _
EXIT SUB
CALL PUTCOM (ESCAPE$+"OD") ' SEND "ALERT" STRING CPC161AI
IF SUBROUTINE.PARAMETER = -1 THEN _
EXIT SUB
IF ABORT = TRUE THEN _
GOTO 20306
CALL LPRNT("Sending FILENAME -- ",1)
CALL LPRNT(RETURN.LINE.FEED$ + CHR$(9),0)
CALL DELAYIT (1) ' WAIT 1 SECOND FOR SETUP
'
' SEND ONE CHARACTER AT A TIME
'
* ------[ first line different ]------
CALL BRKFNAME (B$(DWN.INDEX),X$,A$,Y$,TRUE) ' TF033104
A$ = A$ + Y$ + "=X" ' TF033104
FOR X = 1 TO LEN(A$)
CALL PUTCOM (MID$(A$,X,1)) ' SEND 1 CHARACTER
IF SUBROUTINE.PARAMETER = -1 THEN _
EXIT SUB
IF ABORT = TRUE THEN _
GOTO 20306
CALL LPRNT(MID$(A$,X,1),0) ' DISPLAY IF NEEDED
IF TIMER < 86390! THEN _
DELAY! = TIMER + 10 _
ELSE DELAY! = TIMER - 86400! + 10 ' SET MAXIMUM TIME TO WAIT FOR REPLY
WHILE EOF(3)
IF TIMER > DELAY! THEN _
GOTO 20300 ' IF NO ECHO, CANCEL FILENAME TRANSFER
WEND ' JUMP OUT IF CHARACTER IS RECEIVED
* REPLACING old line(s) by new
20720 A$ = "Upload best fits what category (H=help)"
SUBROUTINE.PARAMETER = 1
CALL TGET
IF SUBROUTINE.PARAMETER = -1 THEN _
B$ = DEFAULT.CATEGORY.CODE$ : _
GOTO 20722
IF Q = 0 THEN _
GOTO 20719
CALL ALLCAPS (B$(1))
* ------[ first line different ]------
IF B$(1) = "H" OR _ ' TF041901
B$(1) = "*" OR _ ' TF041901
B$(1) = "?" THEN _ ' TF041901
GOTO 20719
CALL CHKNARY (B$(1),CATEGORY.NAME$(),NUM.CATEGORIES,FOUND)
IF FOUND > 0 THEN _
Y$ = CATEGORY.CODE$(FOUND) : _
IF LEN(Y$) > 0 AND LEN(Y$) < 4 AND INSTR(Y$,",") = 0 THEN _
GOTO 20722
Y$ = ""
IF NOT LIMIT.SEARCH.TO.FMS THEN _
STREW.TO$ = DIRECTORY.PATH$ + _
B$(1) + _
"." + _
DIRECTORY.EXTENTION$ : _
CALL FINDIT (STREW.TO$) : _
IF NOT OK THEN _
STREW.TO$ = "" _
ELSE GOTO 20722
CALL QTPUT ("No such category " + B$(1),1)
GOTO 20719